from os.path import abspath, dirname, join, normpath


def enum(**enums):
    return type('Enum', (), enums)


PREFIX = normpath(dirname(abspath(__file__)))
AppPath = join(PREFIX, r'../')

UserPrefix = "user"
TokenDict = "tokens"

RoomMemMax = 20
MoveSpeed = 6

CellWidth = 1

MatchTimeInterval = 1
UpdateTimeInterval = 0.1

Config = enum(
    Map="Map",
)

Direction4 = [
    [-1, 0],
    [0, -1],
    [1, 0],
    [0, 1],
]
